export type responseTypes =
  | 'arraybuffer'
  | 'blob'
  | 'document'
  | 'json'
  | 'text'
  | 'stream';

export type ResponseFormat<D = any> = {
  msg: string,
  code: string | number,
  data?: D
}

export type ResponseFormatWithList = ResponseFormat<{ list: [], total: number }>

export type ResponseFormatWithRows = ResponseFormat<{ rows: [], total: number }>

// 带分页参数请求的参数
export type IPaginationForm = {
  pageSize: number,
  pageNum: number
  total?: number,
  [key: string]: any
}

// 带分页参数和条件请求的参数
export type IPaginationFormWithCondition = IPaginationForm & {
  [key: string]: any
}
